package ex1.sub1;

import org.springframework.beans.factory.InitializingBean;

import java.util.Map;

/**
 * @author GalK
 */
public class MyCache implements InitializingBean {

    private Map<String, String> myCache;

    public Map<String, String> getMyCache() {
        return myCache;
    }

    public void setMyCache(Map<String, String> myCache) {
        this.myCache = myCache;
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("at afterPropertiesSet");
    }

    public void myInit() {
        System.out.println("at myInit");
    }
}
